﻿* {
    box-sizing: border-box;
  }
  
  /* Style the body */
  body {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #404040;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  h1 {
    color: white;
    font-size: 8vw;
  }

  h2 {
    color: black;
    font-size: 1.3em;
    font-weight: 400;
  }

  #show {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.3em;
    line-height: 0.7em;
  }

  .all {
     /* Location of the image */
     background-image: url("../images/background/bg.png");
    
     /* Background image is centered vertically and horizontally at all times */
     background-position: center center;
     
     /* Background image doesn't tile */
     background-repeat: no-repeat;
     
     /* Background image is fixed in the viewport so that it doesn't move when 
       the content's height is greater than the image's height */
     background-attachment: fixed;
     
     /* This is what makes the background image rescale based
       on the container's size */
     background-size: cover;
     
     /* Set a background color that will be displayed
       while the background image is loading */
     background-color: #404040;
  }
  
  /* Header/logo Title */
  .header {
    text-align: center;
    background: transparent;
    color: white;
    margin: 0;
  }
  
  /* Style the top navigation bar */
  .navbar {
    display: flex;
    background-color: #333;
    height: 100px;
  }
  
  /* Style the navigation bar links  */
  .navbar a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    text-align: center;
  }
  
  /* Change color on hover */
  .navbar a:hover {
    background-color: #ddd;
    color: black;
  }
  
  /* Column container */
  .row {  
    display: flex;
    flex-wrap: wrap;
    margin: -5px 0px;
  }
  
  /* Create two unequal columns that sits next to each other */
  /* Sidebar/left column */
  .side {
    flex: 20%;
    background-color: #404040;
    color: white;
    font-size: 1.4em;
    line-height: 1.8em;
    padding: 15px 5px 5px 25px;
  }
  
  /* Sidebar Link */
  .side a {
    text-decoration: none;
    color: white;
  }

  /* Sidebar Link:Hover */
  .side a:hover {
    text-decoration: none;
    color: pink;
  }

  .side img {
    width: 20%;
  }

  /* Main column */
  .main {
    flex: 80%;
    margin-top: 0;
    background-color: transparent;    
  }
  
  /* Fake image, just for this example */
  .fakeimg {
    background-color: #aaa;
    width: 100%;
    padding: 20px;
  }
  
  /* Footer */
  .footer {
    height: 60px;
    padding: 10px 10px 10px 10px;
    text-align: center;
    background: #404040;
  }
  
  /*Footer Link */
  .footer a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 10px;
    text-decoration: none;
  }

  /* Footer Image */
  .footer img {
    float: left;
    }
  
  /* Change color on hover */
  .footer a:hover {
    background-color: #ddd;
    color: black;
    }


  /* Responsive layout - when the screen is less than 1024px wide */
  @media screen and (max-width: 1024px) {
    .header {
      background-image: url(../images/banner/banner_small.png);
      background-size: cover;
    }
    .row, .navbar {   
      flex-direction: row;
    }

    .side {
      color: white;
      font-size: 1.4em;
      line-height: 1.5em;
      padding: 20px 0px 5px 20px;
    }

    .main {
      background-image: url();
      background-color: #404040;
    }
  }

  /* Responsive layout - when the screen is less than 800px wide, make the two columns stack on top of each other instead of next to each other */
  @media screen and (max-width: 790px) {
    .item1 { grid-area: 1 / span 2; }
    .item2 { grid-area: 2 / span 2; }
    .item3 { grid-area: 3 / 1 ; }
    .item4 { grid-area: 3 / 2 ; }
    .item-e1 { grid-area: 1 / span 2; }
    .item-e2 { grid-area: 2 / span 2; }
    .item-e3 { grid-area: 3 / span 2; }
    .item-e4 { grid-area: 4 / span 2; }
    
    .side {
      color: white;
      font-size: 1.4em;
      line-height: 1.5em;
      padding: 20px 0px 5px 20px;
    }

    .main {
      background-image: url();
      background-color: #404040;
    }
  }